import Cookies from 'js-cookie';
import {tokenKey} from './config.js'

// 设置token
export function setToken(token){
	// 给cookie里存值，键值对形式key-value
	Cookies.set(tokenKey,token);
}
// 获取token
export function getToken(){
	return Cookies.get(tokenKey);
}
// 移除token
export function removeToken(){
	Cookies.remove(tokenKey);
}